package com.platform.dao;

import com.platform.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface PermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    List<Permission> selectByRoleCode(Map param);

    List<Map> selectByParam(@Param(value = "names") String names);

    String selectPidByRoleCode(@Param(value = "roleCode") String roleCode);

}